package keeto.com.vn.classified.config;

import keeto.com.vn.classified.network.IProtocol;


public interface IConfig {
	
	public static final String BSM_PACKAGE_NAME = "com.netmite.andme.launcher.bsm_mobile";
	public static final String BSM_APKURL = "http://www.kerren.co.id/download/bsm.apk";
	public static final String MELON_PACKAGE_NAME ="com.melon.http";
	public static final String MELON_APKURL = "http://www.kerren.co.id/download/melon.apk";
	
	
	public static final String COMPILE_TIME = ICompileTimestamp.COMPILE_TIME;
	public static final String SVN_REV = ISVNRev.SVN_REV;
	public final String SHARED_PREFERENCE_NAME = "SHARED_PREFERENCE";
	public static final String USER_LOGIN_NAME ="userlogin";
	public static final String USER_LOGIN_PASSWORD ="userPassword";
	public static final String USER_LOGIN_FULLNAME ="fullName";
	public static final String USER_ID ="UserID";
	public static final String USER_PERMISSION ="Permission";
	public static final String USER_AUTHKEY ="AuthKey";
	public static final String TYPE_KEY_USER = "KeyUser";
	/**
	 * Images's proxy, for example downloading them from facebook or twitter
	 * */
	public static final boolean ENABLE_PROXY = false;

	public static final boolean DEMO = false;
	public static final boolean IS_QUICK_REGISTRATION = false;
	public static final int GROUP_PAICIPANTS_LIMIT = 100;
//	public static final String REGISTRATION_NUMBER = "2410";
//	public static final String REGISTRATION_CONTENT = "REG DAILY";
	public static final boolean DEBUG_MODE = true;
	public static final boolean ACK_MESSAGE_RECEIVED = true;
	public static final int OUTBAND_FILE_PIECE_SIZE = 16 * 1024;
	public static final int OUTBAND_FILE_DOWNLOAD_PIECE = 1 * 1024;
	public static final int DOWNLOAD_FILE_PIECE_SIZE = 5 * 1024;
	public static final int DOWNLOAD_FILE_PIECE_TIME = 500;

	// UDP_POLLER : true use UDP heart beat.false use http heart beat.
	public static final boolean UDP_POLLER = true;
	public static final String POLL_STRING = "101";

	public static final String POLL_URL = IProtocol.UDP_POLLING_URL;
	// public static final String POLL_URL = "192.168.0.178";

	public static final int POLL_PORT = 20001;
	public static final int POLLING_FREQUENCY_FORGROUND = 30 * 1000;  //30 seconds
	public static final int POLLING_FREQUENCY_BACKGROUND = 3 * 60 * 1000; //3 minutes

//	public final String TIMEZONE = "GMT+8:00";
//	public final String DEFAULT_LOCALE = "EN";
//	public final String LOCALE_EN = "EN";
//	public final String LOCALE_IND = "IND";
//	public final String LOCALE_VN = "VN";
//	public final String LOCALE_VINM = "VINM";
//	public final String LOCALE_ZH = "ZH";
//	public final String LOCALE_PH = "PH";

	/*
	 * SETTING
	 */
	public static final boolean USE_ADDITION_REQUEST = true;

	/*
	 * FACEBOOK
	 */
	public static final String APP_ID = "535810433138276";
	public static final String APP_SECRET = "6e65b6181459413e95ce658dd5eecccf";
	public static final String[] PERMISSIONS = new String[] { "publish_stream",
			"read_stream", "offline_access", "user_photos", "friends_photos",
			"xmpp_login" };

	/*
	 * TWITTER
	 */
	public static final String CONSUMER_KEY = "DrmTKCBG5Sh27ngRCdWvw";
	public static final String CONSUMER_SECRET = "7mMzSSRvQIpmgd5PUUWsOnGeZ2hyLF8pgxmFHLqaQ0";

	/*
	 * MAX SIZE OF FILE
	 */
	public static final long JPEGMAXSIZE = 512000L;
	public static final long VIDEOMAXSIZE = 5000 * 1024;
	public static final long AUDIOMAXSIZE = 2000 * 1024;

	public static final long PUT_COMMAND_RETRY_INTERVAL = 200;
	
	/**
	 * For Multi-response, i.e. heartbeat's response may be a Multi-response.
	 * split by the {@link IConfig#MULTIPLE_RESPONSE_SPLIT_WORD}.
	 */
	public static final String MULTIPLE_RESPONSE_SPLIT_WORD = "\r\n\r\n\4\4\4\r\n\r\n";
	
	/**
	 * if connection is TCP. it used to separate the responses.
	 */
	public static final String TCP_RESPONSE_SPLIT_WORD = "\r\n\r\n\4\4\r\n\r\n";

	
	// MEDIA CACHE SETTING
	/*
	 * CACHE FOLDER
	 */
	public static final String CACHE_PATH2 = "/Keeto/imcache/";
	public static final String CACHE_PATH = "/Keeto/imcache/";
	
	
	/*
	 * EXCEPTION LOG CONFIGURES
	 */
	public static final String ERROR_LOG_LOCAL_PATH = "/Keeto/error";
	public static final String ERROR_LOG_VERSION = "Keeto 1.0";
	/**
	 * @category 下载路径
	 * */
	static String PATH_DOWNLOAD = "/Keeto/Download/";
	/**
	 * @category 上传路径
	 * */
	static String PATH_UPLOAD = "/Keeto/Upload/";
	/**
	 * @category 临时路径
	 * */
	static String PATH_TEMP = "/Keeto/Temp/";

	
	/**
	 * the size of cache.
	 */
	public static final long CACHE_MAX = 10 * 1024 * 1024;

	/**
	 * @category expiry time for cache, 7 days
	 */
	public static final long CACHE_EXPIRY_TIME = 7L*24L*60L * 60L * 1000L;

	/**
	 * Frequency of file be called. used to calculate a value. the value
	 * determine the corresponding cache whether to be deleted.
	 */
	public static final long WEIGHT_FREQUENCY = 1;

	/**
	 * CD of file. used to calculate a value. the value determine the
	 * corresponding cache whether to be deleted.
	 */
	public static final long WEIGHT_CD = -1;

	/**
	 * Size of file. used to calculate a value. the value determine the
	 * corresponding cache whether to be deleted.
	 */
	public static final long WEIGHT_SIZE = -1;

	/**
	 * timeout value. timeout of get response.
	 */
	public static final int TIMEOUT_CONNECTION = 30 * 1000;

	/**
	 * timeout value. timeout of connection.
	 */
	public static final int TIMEOUT_SOCKET = 30 * 1000;
	
	public static final int SOCKET_BUFFER_SIZE = 2048;
	

	public static final String MAIN_DOMAIN_NAME = "keetoapps.keeto.com.vn";
	public static final String TCP_PROXY_SERVER = MAIN_DOMAIN_NAME;
	public static final int TCP_PROXY_PORT = 20001;
	public static final String IM_URL = "http://"+MAIN_DOMAIN_NAME+"/im/WebService/json_service.php";
//	public static final String IA_NEW_URL = "http://raovat.keeto.vn/Server/api/index";
	public static final String IA_NEW_URL = "http://srvraovat.xakhohang.vn:8080/api/index";
//	http://raovat.keeto.vn/Server/api/index
//	public static final String IA_NEW_URL = "http://192.168.1.43/RaoVat1.0/Server/api/index";

	
	public static final String IA_NEW_URL_DEFAULT_IMAGE = "http://keeto.vn";
	public static final String AD_URL = "http://"+MAIN_DOMAIN_NAME+"/im/AdWebService/json_service.php";
	public static final String IA_URL = "http://"+MAIN_DOMAIN_NAME+"/im/WebService/ia_service.php";
	public static final String SNS_URL = IM_URL;
	public static final String UDP_POLLING_URL = MAIN_DOMAIN_NAME;
	public static final String PICTURE_PREFIX_ROSTER = "http://"+MAIN_DOMAIN_NAME+"/im/WebService/picture.php?rosterId=";
	public static final String PICTURE_PREFIX_USERNAME = "http://"+MAIN_DOMAIN_NAME+"/im/WebService/picture.php?username=";
	public static final String SNS_MEDIA_PREFIX = MAIN_DOMAIN_NAME;
	public static final String PICTURE_PREFIX = "http://"+MAIN_DOMAIN_NAME+"/im/WebService/picture.php?userId=";
	public static final String IA_PIC_URL = "http://"+MAIN_DOMAIN_NAME+"/im/WebService/iapicture.php";
	public static final String AD_PIC_URL = "http://"+MAIN_DOMAIN_NAME+"/im/WebService/ad_picture.php?image=";
	public static final String IA_ITEM_URL = "http://"+MAIN_DOMAIN_NAME+"/im/Wap/item/get-item";
	public static final String MEDIASTORE_URL = "http://"+MAIN_DOMAIN_NAME+"/im/MediaStore/uploadfile";
	public static final String MEDIASTORE_JSON_SERVICE_URL = "http://"+MAIN_DOMAIN_NAME+"/im/MediaStore/json_service.php";
	public static final String PICTURE_PROXY_URL = "http://"+MAIN_DOMAIN_NAME+"/im/ProxyService/picture.php?picture=";
	public static final String TWITTER_PROXY_URL = "http://"+MAIN_DOMAIN_NAME+"/im/TwProxy/service.php?uri=";
	public static final String FACEBOOK_PROXY_URL = "http://"+MAIN_DOMAIN_NAME+"/im/FbProxy/service.php?uri=";
	public static final String ERROR_LOG_UPLOAD_REMOTE_PATH = "http://"+MAIN_DOMAIN_NAME+"/im/ErrorReport/report.php";
	public static final String ABUSE_REPORT_URL = "http://"+MAIN_DOMAIN_NAME+"/im/AbuseReportService/abuse_report_service.php";
	public static final String MAP_URL = "http://maps.google.com/maps/api/geocode/json?address=";
	
	
//	public static final String MAIN_DOMAIN_NAME = "keetoapps.keeto.com.vn";
//    public static final String TCP_PROXY_SERVER = "kerren.cn";
//    public static final int TCP_PROXY_PORT = 20001;
//    public static final String IM_URL = "http://kerren.cn/im/WebService/json_service.php";
//    public static final String AD_URL = "http://kerren.cn/im/AdWebService/json_service.php";
//    public static final String IA_URL = "http://kerren.cn/im/WebService/ia_service.php";
//    public static final String SNS_URL = IM_URL;
//    public static final String UDP_POLLING_URL = "udp.kerren.cn";
//    public static final String PICTURE_PREFIX_ROSTER = "http://kerren.cn/im/WebService/picture.php?rosterId=";
//    public static final String PICTURE_PREFIX_USERNAME = "http://kerren.cn/im/WebService/picture.php?username=";
//    public static final String SNS_MEDIA_PREFIX = "kerren.cn";
//    public static final String PICTURE_PREFIX = "http://kerren.cn/im/WebService/picture.php?userId=";
//    public static final String IA_PIC_URL = "http://kerren.cn/im/WebService/iapicture.php";
//    public static final String AD_PIC_URL = "http://kerren.cn/im/WebService/ad_picture.php?image=";
//    public static final String IA_ITEM_URL = "http://kerren.cn/im/Wap/item/get-item";
//    public static final String MEDIASTORE_URL = "http://kerren.cn/im/MediaStore/uploadfile";
//    public static final String MEDIASTORE_JSON_SERVICE_URL = "http://kerren.cn/im/MediaStore/json_service.php";
//    public static final String PICTURE_PROXY_URL = "http://kerren.cn/im/ProxyService/picture.php?picture=";
//    public static final String TWITTER_PROXY_URL = "http://kerren.cn/im/TwProxy/service.php?uri=";
//    public static final String FACEBOOK_PROXY_URL = "http://kerren.cn/im/FbProxy/service.php?uri=";
//    public static final String ERROR_LOG_UPLOAD_REMOTE_PATH = "http://kerren.cn/im/ErrorReport/report.php";
//    public static final String ABUSE_REPORT_URL = "http://kerren.cn/im/AbuseReportService/abuse_report_service.php";
	
//	public static final String MAIN_DOMAIN_NAME = "keetoapps.keeto.com.vn";
//	public static final String TCP_PROXY_SERVER = "kerren.thsmobile.com";
//	public static final int TCP_PROXY_PORT = 20001;
//	public static final String IM_URL = "http://kerren.thsmobile.com/im/WebService/json_service.php";
//	public static final String AD_URL = "http://kerren.thsmobile.com/im/AdWebService/json_service.php";
//	public static final String IA_URL = "http://kerren.thsmobile.com/im/WebService/ia_service.php";
//	public static final String SNS_URL = IM_URL;
//	public static final String UDP_POLLING_URL = "kerren.thsmobile.com";
//	public static final String PICTURE_PREFIX_ROSTER = "http://kerren.thsmobile.com/im/WebService/picture.php?rosterId=";
//	public static final String PICTURE_PREFIX_USERNAME = "http://kerren.thsmobile.com/im/WebService/picture.php?username=";
//	public static final String SNS_MEDIA_PREFIX = "kerren.thsmobile.com";
//	public static final String PICTURE_PREFIX = "http://kerren.thsmobile.com/im/WebService/picture.php?userId=";
//	public static final String IA_PIC_URL = "http://kerren.thsmobile.com/im/WebService/iapicture.php";
//	public static final String AD_PIC_URL = "http://kerren.thsmobile.com/im/WebService/ad_picture.php?image=";
//	public static final String IA_ITEM_URL = "http://kerren.thsmobile.com/im/Wap/item/get-item";
//	public static final String MEDIASTORE_URL = "http://kerren.thsmobile.com/im/MediaStore/uploadfile";
//	public static final String MEDIASTORE_JSON_SERVICE_URL = "http://kerren.thsmobile.com/im/MediaStore/json_service.php";
//	public static final String PICTURE_PROXY_URL = "http://kerren.thsmobile.com/im/ProxyService/picture.php?picture=";
//	public static final String TWITTER_PROXY_URL = "http://kerren.thsmobile.com/im/TwProxy/service.php?uri=";
//	public static final String FACEBOOK_PROXY_URL = "http://kerren.thsmobile.com/im/FbProxy/service.php?uri=";
//	public static final String ERROR_LOG_UPLOAD_REMOTE_PATH = "http://kerren.thsmobile.com/im/ErrorReport/report.php";
//	public static final String ABUSE_REPORT_URL = "http://kerren.thsmobile.com/im/AbuseReportService/abuse_report_service.php";

	// message list setting
	public static final int LAST_MSG_COUNT = 100;
	public static final int MAX_MSG_RECORD = 1000;
	public static final int MSG_COUNT_IN_PAGE = 100;
	// retry setting.
	/**
	 * waiting interval when network error.
	 */
	public static final int NETWORK_FAIL_WAIT = 20 * 1000;


	// public static final String DEFAULT_LANGUAGE = Locale.CHINA.toString();

	public static final int DEFAULT_SHOCK_TIME = 4000;

	/**
	 * if connection use zip.
	 */
	public static final boolean USE_ZIP = true;



	/**
	 * if true use http connection. false use TCP connection.
	 */
	public static boolean CONNECTION_ONLY_HTTP = true;

	public static String TestAutoSendMessage = "1061";

	public static boolean CONTACT_RULE_TEST = false;
	/**
	 * @category 录音文件�?�缀 Audio file extension
	 * */
	public static final String AUDIO_FILE_EXTENSION = ".amr";
	/**
	 * @category 图片文件�?�缀 Picture file extension
	 * */
	public static final String PIC_FILE_EXTENSION = ".jpg";
	/**
	 * @category 麦克风进度�?�最大进度值
	 * */
	public static final int MIC_PROGRESS_BAR_MAX = 100;
	/**
	 * @category 麦克风进度�?�最�?进度值
	 * */
	public static final int MIC_PROGRESS_BAR_MIN = 0;
	/**
	 * @category 进度�?��??应的�?��?度 ,数值越大越�?��? 应该控制在 0 < MIC_PROGRESS_BAR_MAX/2之间
	 * */
	public static final int MIC_PROGRESS_BAR_AGILE = 40;
	/**
	 * @category SNS的字数�?制
	 * */
	public static final int MAX_SNS_CONTENT_LENGTH = 140;

	/************** IAHomeActivity *******************/
	/**
	 * @category 铃声主键
	 * */
	final static String CATEGORY_RINGTONE = "144";
	/**
	 * @category 我的应用主键
	 * */
	final static String CATEGORY_MYAPP = "142";
	/**
	 * @category 我的游�?主键
	 * */
	final static String CATEGORY_MYGAME = "143";
	/************** IAHomeActivity *******************/


	/*** SNS ***/
	/**
	 * @category 一次�?�多少�?�SNS数�?�
	 * */
	final static int SNS_LIMIT_COUNT = 10;
	/**
	 * @category SNS中代表自己的ID
	 * */
	final static String SNS_SELFT_USERID = "-1";
	/**
	 * @category SNS第一次获�?�数�?�时Since ID
	 * */
	final static String SNS_SINCEID_FIRST = IConstant.UNINITIALIZED_STRING;
	/**
	 * @category SNS第一次获�?�数�?�时Until ID
	 * */
	final static String SNS_UNTIL_FIRST = IConstant.UNINITIALIZED_STRING;
	/*** SNS ***/
	/*** SendPostActivity ***/
	/**
	 * @category �?秒等于的毫秒数
	 * */
	final static int MILLION_SECONDS_PER_SECONDS = 1000;
	/**
	 * @category 播放音显示的时间格�?
	 * */
	final static String AUDIO_TIME_FORMAT = "%s''";
	/**
	 * @category 音频秒数主键
	 * */
	final static String PRO_KEY_AUDIO_SECONDS = "audio_seconds";

	/**
	 * @category 照片最大宽度
	 * */
	static int PIC_MAX_WIDTH = 1024;
	/**
	 * @category 照片最大长度
	 * */
	static int PIC_MAX_HEIGHT = 1024;
	/*** SendPostActivity ***/

    // PATH GALLERY AVATAR 
	public static final String PATH_LIB_AVATAR = "/Keeto/avatar/";
	public static final String PATH_LIB_BACKGROUND = "/Keeto/background/";
	public static final String PATH_YAHOO = "@yahoo.com";
	public static final String PATH_HANG_OUT = "@gmail.com";

}
